package com.campus.common;

import lombok.Data;

/**
 * Redis存储 Key 常量类
 */
@Data
public class RedisCache {
    public static final String EMAIL_CODE_KEY_FORGET = "email:code:forget:";
    public static final String EMAIL_CODE_KEY= "email:code:";
    public static final String EMAIL_CODE_KEY_REGISTER= "email:code:register:";
    public static final String TOKEN_KEY = "user:token:";
    public static final String CAPTCHA_KEY = "login:captcha:";
    
    // 热力榜相关key
    public static final String HOT_RANKING_KEY_PREFIX = "hot-ranking:";
    public static final String HOT_RANKING_ZSET_KEY_PREFIX = "hot-ranking-zset:";
    public static final String HOT_RANKING_POST_KEY_PREFIX = "hot-ranking:post:";
    public static final String TODAY_POST_COUNT="today:post:count";
    public static final String TODAY_POST_VIEW_COUNT="today:post:view:count";
    public static final String WEEK_POST_COUNT="week:post:count";
    public static final String WEEK_POST_VIEW_COUNT="week:post:view:count";
    public static final String MONTH_POST_COUNT="month:post:count";
    public static final String MONTH_POST_VIEW_COUNT="month:post:view:count";
    public static final String POST_COUNT=":post:count";
    public static final String POST_VIEW_COUNT=":post:view:count";
}